import { createApp } from 'vue';
import 'reset-css'
import App from './App.vue';
import router from './router'; // 导入 Vue Router 实例
import store from './store'
// 导入 element-plus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Axios from './http';

const app = createApp(App); // 创建一个 Vue 应用实例

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
Axios.defaults.baseURL = 'http://127.0.0.1:5000/api/'
app.config.globalProperties.$axios = Axios;

app.use(ElementPlus); // 使用 Element Plus
app.use(router); // 使用 Vue Router
app.use(store)
app.component('fundList')
app.mount('#app'); // 挂载到页面上
